#pragma once

#include <stdbool.h>

void init_nvs(void);

bool is_wifi_configured(void);
void set_wifi_configured(void);

bool is_mqtt_configured(void);
void set_mqtt_configured(void);

void clear_all_configured_flag();

void persist_mqtt_uri(char *mqtt_uri);
void query_mqtt_uri(char *mqtt_uri);

void query_mqtt_config_topic(char *topic);

void persist_mqtt_topic_user_password(char *topic, char *username, char *password);

void query_mqtt_username_password(char *username, char *password);

void query_mqtt_sub_topic(char *topic);
void query_mqtt_pub_topic(char *topic);
void query_mqtt_sub_pub_topic(char *sub_topic, char *pub_topic);